
    /**
     * Helper method to add the passed role to the roles List.
     */
    public boolean add${rel.@entity}(${rel.@entity} item) {
        if(get${rel.@name?cap_first}()==null){
            <#if rel.@type="List">
            set${rel.@name?cap_first}(new java.util.ArrayList());
            </#if>
            <#if rel.@type="Set">
            set${rel.@name?cap_first}(new java.util.HashSet());
            </#if>
            <#if rel.@type="Collection">
            set${rel.@name?cap_first}(new java.util.ArrayList());
            </#if>
            <#if rel.@type="Map">
            set${rel.@name?cap_first}(new java.util.HashMap());
            </#if>
        }
        return get${rel.@name?cap_first}().add(item);
    }

    /**
     * Helper method to remove the passed item from the ${rel.@name?cap_first} List.
     */
    public boolean remove${rel.@entity}(${rel.@entity} item) {
        return get${rel.@name?cap_first}().remove(item);
    }

    /**
     * Helper method to determine if the passed item is present in the ${rel.@name?cap_first} List.
     */
    public boolean contains${rel.@entity}(${rel.@entity} item) {
        return get${rel.@name?cap_first}() != null && get${rel.@name?cap_first}().contains(item);
    }
	